package pro.lingwu.station.service;

import pro.lingwu.station.dto.PagesResult;
import pro.lingwu.station.dto.db.Admin;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author @lingwu
 * @date created in 11/18/2021
 */
public interface AdminService {

    void addAdmin(Admin admin);

    Admin signIn(String account, String password, HttpServletRequest request);

    void updateAdmin(Admin admin);

    PagesResult<Admin> getAdmins(int start, int size);

    void rmAdmin(String account);

}
